<?php
if(!defined('DEDEINC')) exit('Request Error!');

function plus_question(&$atts,&$refObj,&$fields)
{
	global $dsql,$_vars,$question;
	$attlist = "type=,name=title";
	//digest=,answer=
	FillAtts($atts,$attlist);
	FillFields($atts,$fields,$refObj);
	extract($atts, EXTR_OVERWRITE);
	$rearr = array();
	$rearr = &$question;
	if (empty($type))
		echo $rearr[$name];
	else if ($type =='digest')
	{
		return digestanswer($name);
	}
	else if ($type =='answer')
	{
		return answer();
	}
}
function digestanswer($name = null){
	global $digestanswer;
	if ($name ==null)
		echo 'Array';
	else
		echo $digestanswer[$name];
}
function answer(){
	global $answers;
	return $answers;
}
?>